package cn.jofei.core.bean;

/**
 * Bean的定义
 *
 * @author Jofei Bao
 * @version ngbao v2.0
 * @date 2022年10月26日 11:49
 */
public class BeanDefined {
    /**
     * Bean名称
     */
    private String name;
    /**
     * Bean的类
     */
    private Class<?> clazz;
    /**
     * 构造方法的参数
     */
    private Class<?>[] constructClasses;
    /**
     * 是否懒加载
     */
    private boolean lazy = false;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Class<?> getClazz() {
        return clazz;
    }

    public void setClazz(Class<?> clazz) {
        this.clazz = clazz;
    }

    public Class<?>[] getConstructClasses() {
        return constructClasses;
    }

    public void setConstructClasses(Class<?>[] constructClasses) {
        this.constructClasses = constructClasses;
    }

    public boolean isLazy() {
        return lazy;
    }

    public void setLazy(boolean lazy) {
        this.lazy = lazy;
    }
}
